package com.foreknow.elm.controller;


import com.foreknow.elm.service.FoodService;
import com.foreknow.elm.service.impl.FoodServiceImpl;
import javax.servlet.http.HttpServletRequest;

public class FoodController {
    /**
     * 根据商家编号查询所属食品信息
     * @param request
     * @return
     */
    public Object listFoodByBusinessId(HttpServletRequest request) {

        int businessId = Integer.parseInt(request.getParameter("businessId"));
        FoodService service = new FoodServiceImpl();
        return service.listFoodByBusinessId(businessId);
    }

}
